import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from './router'
import VueScrollTo from 'vue-scrollto'
import '@/assets/css/global.css';
import '@/assets/iconfront/iconfont.css';
import request from './utils/request';
// 代码高亮
import 'highlight.js/styles/atom-one-dark.css'
import 'nprogress/nprogress.css'



Vue.config.productionTip = false
Vue.use(ElementUI,{size:'small'});
// 使用 HighlightJS
Vue.prototype.$request=request
Vue.prototype.$baseUrl=process.env.VUE_APP_BASEURL
console.log(process.env.VUE_APP_BASEURL)
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
Vue.use(VueScrollTo);
import VueMarkdownEditor from '@kangc/v-md-editor';
import '@kangc/v-md-editor/lib/style/base-editor.css';
import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js';
import '@kangc/v-md-editor/lib/theme/style/vuepress.css';
import Prism from 'prismjs';
VueMarkdownEditor.use(vuepressTheme, {
  Prism,
});
Vue.use(VueMarkdownEditor);
import VMdPreview from '@kangc/v-md-editor/lib/preview';
import '@kangc/v-md-editor/lib/style/preview.css';
import '@/assets/font/font.css'

// import { loadOml2d } from 'oh-my-live2d';

// const oml2d = loadOml2d({
//   mobileDisplay: true,
//   models: [
    
//     {
//       path: 'https://model.oml2d.com/kobayaxi/model.json',
//       position: [-10, 50],
     
//       scale: 0.25,
//       mobileScale: 0,
//       stageStyle: {
//         height: 300,
//         width:300
//       },
//   /*     mobileStageStyle: {
//         height: 370,
//         width: 400,
//       }, */
//       // showHitAreaFrames: true,
//     },
//     {
//       path: ['https://model.oml2d.com/potion-Maker-Pio/index.json',
//         "https://model.oml2d.com/Pio/model.json"],
//       "scale": 0.4,
//           "position": [0, 50],
//           "stageStyle": {
//             "height": 300
//           }
//     },
// /*     {
//       path: 'https://model.oml2d.com/xisitina/model.json',
//       position: [0, -30],
//       scale:0.1,
//       stageStyle: {
//         height: 350,
//         width:400
//       },
      
//     }, */
//     {
//       path: 'https://model.oml2d.com/rem/model.json',
//       position: [-50, 50],
//       scale:0.2,
//       stageStyle: {
//         height: 350,
//         width:400
//       },
//     },
//     {
//       path: 'https://model.oml2d.com/umaru/model.json',
//       "scale": 0.2,
//       "position": [50, 50],
//       "stageStyle": {
//         "height": 300,
//         "width" : 350
//       }
//     },
 

//   ],
// });

// oml2d.onStageSlideIn(() => {

// });



// vuepressTheme主题
VMdPreview.use(vuepressTheme,{
  Prism
})
Vue.use(VMdPreview)
// emoji
import createEmojiPlugin from '@kangc/v-md-editor/lib/plugins/emoji/index';
import '@kangc/v-md-editor/lib/plugins/emoji/emoji.css';

VMdPreview.use(createEmojiPlugin());
//显示代码行数
import createLineNumbertPlugin from '@kangc/v-md-editor/lib/plugins/line-number/index';

VMdPreview.use(createLineNumbertPlugin());

import createKatexPlugin from '@kangc/v-md-editor/lib/plugins/katex/cdn';

VMdPreview.use(createKatexPlugin());




// main.js
import createCopyCodePlugin from '@kangc/v-md-editor/lib/plugins/copy-code/index';
import '@kangc/v-md-editor/lib/plugins/copy-code/copy-code.css';
VMdPreview.use(createCopyCodePlugin());